﻿using System;
using System.Configuration;

namespace WholesaleOnline.Infrastructure.Configuration
{
    public class WebConfigApplicationSettings : IMyApplicationSettings
    {
        public string LogName
        {
            get { return ConfigurationManager.AppSettings["logger_name"]; }
        }

        public string NHibernateConfigFilePath
        {
            get { return AppDomain.CurrentDomain.BaseDirectory + ConfigurationManager.AppSettings["nhibernate_config_file"]; }
        }

        public string CategoryAttributeTypeName
        {
            get { return ConfigurationManager.AppSettings["category_attribute_type_name"]; }
        }

        public int ProductPageSize
        {
            get { return Convert.ToInt32(ConfigurationManager.AppSettings["product_page_size"]); }
        }

        public string DefaultCatagoryName
        {
            get { return ConfigurationManager.AppSettings["default_category_name"]; }
        }
    }
}
